package com.jluzh.filter;

import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerResponseContext;
import javax.ws.rs.container.ContainerResponseFilter;
import java.io.IOException;

/**
 * @author EvanHuang
 * @date 11/5/2018 9:05 PM
 * @since
 */
// 服务端过滤器
public class MyResponseTestFilter implements ContainerResponseFilter {
    @Override
    public void filter(ContainerRequestContext containerRequestContext, ContainerResponseContext containerResponseContext) throws IOException {
        System.out.println("===my response filter test===");
        containerResponseContext.getHeaders().add("xxx","xxx");
    }
}
